package cs419.magnusmi.trackitcs;

import android.content.Intent;

/**
 * Created by Adam on 3/8/14.
 * A basic utility class for catch-all static functions
 */
public class Utility {

    /**
     * method to add session variables to intent to avoid redundant code
     * @param i Intent to ad to
     * @param user username (returned from successful login)
     * @param API API key (returned from successful login)
     */
    public static void addToIntent(Intent i, String user, String API){
        i.putExtra("user", user);
        i.putExtra("API", API);
    }
}
